package com.ww.learn.type

class Animal(val age: Int) {

    override operator fun equals(other: Any?): Boolean = other is Animal && age == other.age

    override fun hashCode(): Int {
        return age
    }
}